console.log(allData);
function showPage(ele, ELE) {
    var pageDatas = '';
    ele.forEach(function (value) {
        pageDatas += `
        <div class="clearfix ">
            <div class="bd_img">
                <a href="goods-info.html${'?'+value.goods_id}"><img src="${value.goods_thumb[0]}" alt=""></a>
            </div>
            <span class="p-price">${value.shop_price_formated}</span>
            <p class="p-name"><a href="" title="">${value.title}</a></p>
            <a href="goods-info.html${'?'+value.goods_id}">
                <div class="p-btn b6">查看详细</div>
            </a>
        </div>
        `
    });
    // console.log(pageDatas);
    // console.log($('.clothing-content-right-bottom1').html());
    ELE.html(pageDatas)
}
showPage(allData.houseData.recommend[0],$('.x1'))
showPage(allData.houseData.recommend[1],$('.x2'))
showPage(allData.houseData.recommend[2],$('.x3'))

function shangpin(ele,ELE){
    var pageData='';
    ele.forEach(function(value){
        pageData+=`
            <div class="you2box">
                <a href=" goods-info.html${'?'+value.goods_id}" ><img src="	${value.goods_thumb[0]}"
                 alt=""></a>
                <div class="you2box2">
                    <p><a href="" title="">${value.title}</a></p>
                    <span class="zi4">${value.shop_price_formated}</span>
                </div>
            </div>
        `
    });
    ELE.html(pageData)
}
shangpin(allData.houseData.health[0],$('#anmo'))
shangpin(allData.houseData.health[1],$('#tixudao'))
shangpin(allData.houseData.health[2],$('#tuomao'))
shangpin(allData.houseData.health[3],$('#kouqiang'))
shangpin(allData.houseData.health[4],$('#lifa'))




shangpin(allData.houseData. kitchenDate[0],$('#dianfanb'))
shangpin(allData.houseData. kitchenDate[1],$('#dianyali'))
shangpin(allData.houseData. kitchenDate[2],$('#doujiang'))
shangpin(allData.houseData. kitchenDate[3],$('#mianbao'))
shangpin(allData.houseData. kitchenDate[4],$('#kafei'))



function shangpin(ele,ELE){
    var pageData='';
    ele.forEach(function(value){
        pageData+=`
            <div class="you2box">
                <a href=" goods-info.html${'?'+value.goods_id}" ><img src="	${value.goods_thumb[0]}"
                 alt=""></a>
                <div class="you2box2">
                    <p><a href="" title="">${value.title}</a></p>
                    <span class="zi4">${value.shop_price_formated}</span>
                </div>
            </div>
        `
    });
    ELE.html(pageData)
}
shangpin(allData.houseData. appliances[0],$('#pbds'))
shangpin(allData.houseData. appliances[1],$('#kt'))
shangpin(allData.houseData. appliances[2],$('#bxiang'))
shangpin(allData.houseData. appliances[3],$('#xiyiji'))
shangpin(allData.houseData. appliances[4],$('#yingyuan'))



